home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 426-450 / disk_434 / backup / defs.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  61 lines

  1.  
  2. /*
  3.  *  DEFS.H
  4.  */
  5.  
  6. #include <exec/types.h>
  7. #include <exec/lists.h>
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <fcntl.h>
  11.  
  12. typedef unsigned char    ubyte;
  13. typedef unsigned short    uword;
  14. typedef unsigned long    ulong;
  15. typedef struct MinList    MLIST;
  16. typedef struct MinNode    MNODE;
  17. typedef struct Node    NODE;
  18. typedef struct FileInfoBlock FIB;
  19. typedef struct DateStamp DATESTAMP;
  20. typedef struct Process    PROC;
  21.  
  22. #define SDIR    struct _SDIR
  23. #define SCOMP    struct _SCOMP
  24.  
  25. SCOMP {
  26.     MNODE   Node;
  27.     uword   Bytes;    /*  allocated bytes            */
  28.     uword   N;
  29. };
  30.  
  31. SDIR {
  32.     MNODE   Node;    /*  node in dir tree            */
  33.     ubyte   Type;    /*  XDDS or XVOL            */
  34.     ubyte   HaveFile;    /*  Something was backed up in here */
  35.     char    *Element;    /*  path element            */
  36. };
  37.  
  38. #define XVOL    0x01
  39. #define XDDS    0x02
  40. #define XEND    0x03
  41. #define XDAT    0x04
  42. #define XPRO    0x05
  43. #define XCOM    0x06
  44. #define XFIL0    0x87
  45. #define XFIL1    0x88
  46. #define XHDR    0x09
  47. #define XINC    0x0A
  48. #define XCRC    0x0B
  49.  
  50. #define EMPTYLIST(list) (list.mlh_Head == (MNODE *)&list.mlh_Tail)
  51.  
  52. extern MLIST    CSList;
  53. extern ubyte    Verbose;
  54. extern long    CLen;
  55. extern SCOMP   *CWrite;
  56. extern MLIST    CList;
  57.  
  58. extern void *GetHead();
  59.  
  60.  
  61.